package com.shanshaogang.services;

import java.util.List;

import org.njbdqn.ali.database.PageHelper;

import com.shanshaogang.dao.ChagreDao;
import com.shanshaogang.entity.Chagre;


public class ChagreService {
private ChagreDao cdao;
	
	public ChagreService(){
		cdao =new ChagreDao();
	}
	public int save(Chagre cha){
		return cdao.save(cha);
	}
	public int add(String dd,String jg,String zf,int sd){
		return cdao.add(dd, jg, zf, sd);
	}
	public List<Chagre> findByRecharge(int account){
		return cdao.findByRecharge(account);
	}
	public PageHelper getPage(int page2){
		return cdao.findPage(page2, 5);
	}
}
